#include <stdio.h>
#include <string.h>
#include <unistd.h>

int main()
{
    int a = 12345;
    char buffer[1024];
    snprintf(buffer, sizeof(buffer), "%d", a);// 转化为字符
    write(1, buffer, strlen(buffer));// 显示器只认字符
    
    //int a = 12345;
    //write(1, &a, sizeof(a));// 显示器只认字符
    
    //const char *m = "hello";
    //write(1, m , strlen(m));
    return 0;
}


